<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/jq-1.12.4.js"></script>
    <script src="../js/bootstrap.js"></script>
</head>

<body>
    <div id="app" class="container">
        <div class='row'></div>
    </div>
</body>
<script>
    $(function () {
        let arr = [{
            src: '../img/111.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/222.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/333.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/444.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/555.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/666.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/111.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        {
            src: '../img/222.jpg',
            title: '左耳',
            desc: '放肆青春掀全民追忆'
        },
        ]

        arr.forEach(item => {
            let div = `<div class="col-md-3 col-sm-4 col-xs-12 " >
        <div href="#" class='thumbnail' >
          <img src="${item.src}" alt="" width="100%"  />
          <div class="caption">
            <h3 class="title">${item.title}</h3>
            <p class="desc">${item.desc}</p>
            <div class="option">
              <a href="javascript:void(0)" class="btn btn-primary">播放</a>
              <a href="javascript:void(0)" class="btn btn-default">下载</a>
            </div>
          </div>
        </div>
      </div>`
            $('.container .row').append(div)
        })
    })
</script>

</html>